<template>
    <div class="student">
        <h2 @click="showName()">学校名称：{{name}}</h2>
        <h2 @click="showXY()">学校地址：{{address}}</h2>
        <hr>
    </div>
</template>

<script>
    import { mixin1, mixin2 } from '../mixin.js';

    export default {
        name: 'School',
        data() {
            console.log(this);
            return {
                name: '尚硅谷',
                address: '北京市昌平区',
            }
        },
        mixins: [
            mixin1,
            mixin2
        ]
    }
</script>

<style>
    .student {
        background-color: gray;
    }
</style>